ActionController::Routing::Routes.draw do |map|
  # The priority is based upon order of creation: first created -> highest priority.
  
  # Sample of regular route:
  # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # You can have the root of your site routed by hooking up '' 
  # -- just remember to delete public/index.html.
  map.home '', :controller => "page", :action => "home"
  map.fleet 'fleet', :controller => "page", :action => "fleet"
  map.rates 'rates', :controller => "page", :action => "rates"
  map.points 'points', :controller => "page", :action => "points"
  map.policies 'policies', :controller => "page", :action => "policies"
  map.about 'about', :controller => "page", :action => "about"
  map.reservations 'reservations', :controller => "page", :action => "reserve"
  map.reserve_now 'reserve_now', :controller => "page", :action => "reserve_now"
  map.contact 'contact', :controller => "page", :action => "feedback"
  map.send_feedback 'send_feedback', :controller=> "page", :action => "send_feedback"
    
  # Install the default route as the lowest priority.
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'
  
  #Install catch_all route that records 404s before displaying page
  map.connect '*path', :controller => "four_oh_fours"
end
